﻿using System.ComponentModel.DataAnnotations;

namespace WH.Contracts.Systems.Users
{
    /// <summary>
    /// 修改密码
    /// </summary>
    public class UserChangePasswordDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string? Id { get; set; } 
        /// <summary>
        /// 原密码
        /// </summary>
        public string? OldPassword { get; set; }
        
        /// <summary>
        /// 新密码
        /// </summary>
        [Required(ErrorMessage = "新密码不能为空")]
        public string NewPassword { get; set; } = null!;
    }
}
